import { App } from 'vue'

import { formmatUtcString } from '@/utlis/date-format'

declare module 'vue' {
  interface ComponentCustomProperties {
    $filters: any
  }
}

export default function registerProperties(app: App) {
  app.config.globalProperties.$filters = {
    foo() {
      console.log('🚀 ~ file: register-properties.ts:6 ~ foo ~ foo:')
    },
    formaTime(value: string) {
      return formmatUtcString(value)
    }
  }
}
